<template>
  <div class="flex scrollbar ">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "Scrollbar",
  data() {
    return {
      showScrollButton: false,
    }
  },
  mounted() {

  },
  methods: {

  },
}
</script>

<style scoped>
.scrollbar {
  width   : 100%;
  overflow: auto;
  /*margin  : 5px;*/
  border  : none;
}
.scrollbar::-webkit-scrollbar {
  width : 5px;
  height: 5px;
}
.scrollbar::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
  background   : #535353;
}
.scrollbar::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background   : #ededed;
}

.scrollbar {
  scrollbar-color: #ededed #f7f7f9; /* 滑块颜色  滚动条背景颜色 */
  scrollbar-width: thin; /* 滚动条宽度有三种：thin、auto、none */
}
</style>
